import request from '../utils/request'

// 关注用户
export const followUserApi = (followId) => {
  return request({
    url: '/users/follow',
    method: 'post',
    params: { followId }
  })
}

// 取消关注用户 (后端待实现)
export const unfollowUserApi = (followId) => {
  return request({
    url: '/users/unfollow',
    method: 'post',
    params: { followId }
  })
}

// 获取用户关注列表 (后端待实现)
export const getUserFollowsApi = (userId) => {
  return request({
    url: `/users/${userId}/follows`,
    method: 'get'
  })
}

// 获取用户粉丝列表 (后端待实现)
export const getUserFollowersApi = (userId) => {
  return request({
    url: `/users/${userId}/followers`,
    method: 'get'
  })
}